﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="htmlDeal.aspx.cs" Inherits="_htmlDeal" ValidateRequest="false" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>代码生成</title>
<script language="javascript">
    function oCopy(obj) {
        obj.select();
        js = obj.createTextRange();
        js.execCommand("Copy")
        //alert("已经复制所点击的代码到剪贴板!");
    }
</script>
<link href="/css/css.css" rel="stylesheet" type="text/css" />  
</head>
<body>
     <div class="nav">
        <a href="Default.aspx">返回首页</a>
   </div>
       <form id="form1" runat="server">
    <div>
<table class="gridtable" style="width:900px;" >
     <thead>
  <tr >
    <th>&nbsp;</th>
    <th class="tdFormRight">从html里提取a标签的内容和链接生成sql语句</th>
  </tr>
       </thead>
   <tr style="display:none;" >
    <td class="tdFormLeft">数据库：</td>
    <td>
<asp:RadioButtonList ID="rdDbType" runat="server"     RepeatDirection="Horizontal" RepeatLayout="Flow">
	<asp:ListItem Value="datacount"  Selected="True">个数统计</asp:ListItem>
	<asp:ListItem Value="batsql" >模板生成</asp:ListItem>
</asp:RadioButtonList>

	</td>
  </tr> 

  <tr>
    <td  class="tdFormLeft">规划文档：</td>
    <td>
        <asp:TextBox ID="txtCont" runat="server" TextMode="MultiLine" Height="166px" Width="746px">
   <li class="treeview"><a href="#"><i class="fa fa-money"></i> <span>金币兑换</span> <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span></a> 
    <ul class="treeview-menu">
     <li><a href="/admin/Goods/goodsadd2/?is_gift=1" target="frmright" style="color: rgb(138, 164, 175);"><i class="fa fa-circle-o"></i> 发布商品</a></li> 
     <li><a href="/admin/Goods/goodslist2/?is_gift=1" target="frmright" style="color: rgb(138, 164, 175);"><i class="fa fa-circle-o"></i> 兑换商品</a></li> 
     <li><a href="/admin/Order/gift_orderList" target="frmright" style="color: rgb(138, 164, 175);"><i class="fa fa-circle-o"></i> 兑换记录</a></li>
    </ul></li> 


        </asp:TextBox>     
    </td>
  </tr>
  <tr>
    <td  class="tdFormLeft">正则：</td>
    <td><asp:TextBox ID="txtReg" runat="server"  Width="746px"><a[^>]*?href=(['""\s]?)(?<href>[^'""\s]*)\1[^>]*?>(?<value>.*?)</a></asp:TextBox>   
        &nbsp;</td>
  </tr>
 <tr>
    <td  class="tdFormLeft">结果：</td>
    <td><asp:TextBox ID="txtResult" runat="server"  TextMode="MultiLine" Height="106px" Width="746px">
        insert into fa_auth_menu(url,menu_name,icon)values('{0}','{1}','fa  fa-file');<br>

        </asp:TextBox>   
        &nbsp;</td>
  </tr>

  <tr>
    <td  class="tdFormLeft">&nbsp;</td>
    <td>
    </td>
  </tr>

</table>
    <div class="row" style="margin-top:10px;">
        <span style="margin-left:100px;"></span>
        <asp:Button ID="btnGenCode" runat="server" Text=" 生成SQL " OnClick="btnGenCode_Click" />&nbsp;&nbsp;
        &nbsp;&nbsp;
    </div>
        <asp:Label ID="lblMsg" runat="server" Text="" ForeColor="#FF3300"></asp:Label>    
        <asp:Label ID="lblResult" runat="server" Text="" ForeColor="#FF3300"></asp:Label>    
 
        <p>
     
            &nbsp;&nbsp;
        </p>
    </div>
    </form>
<div class="memo">
<pre>
&nbsp;</pre>
    <pre>
从html里提取a标签的内容和链接生成sql语句，用于生成菜单
</pre>
    </div>
</body>
</html>
